GCC = g++
CPPFLAGS = -g -finline-functions -Wall -Winline -pipe -DOS_LINUX
HEAD_INFO = -DPROJECT_NAME="\"FASTSEARCH\"" -DDESCRIPTION="\"FastSearch indexer\""
	  
INCLUDES = -I./ -I../../common/commonlib/output/include \
	   -I../../common/sparsehash/include \
	   -I../../common/termindex/ \
	   -I../common/ \
	   -I../../common/sign/ \

LIBS     = -L./ -L../../common/commonlib/output/lib -lcommonlib \
	   -L../../common/sign/ -lsign \
	   -lpthread

all : divider

divider : idxDivider.o divider.o
	$(GCC) -o $@ $^ $(INCLUDES) $(HEAD_INFO) $(LIBS)

%.o : %.cpp
	$(GCC) $(CPPFLAGS) $(HEAD_INFO) -c $< -o $@ $(INCLUDES)

clean :
	rm -f *.o
	rm -f divider
	rm -rf output

